<%@ page language="java" contentType="text/html; charset=utf-8"
         pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page isELIgnored="false"%><%
    String path = request.getContextPath();
    String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
    pageContext.setAttribute("path",path);
    pageContext.setAttribute("basePath",basePath);
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>Insert title here</title>
    <script src="${path}/js/jquery/easyui/jquery-1.8.0.min.js"></script>
    <script>
        function changeSrc()
        {
            var loginname = $('#loginname').val();
            document.getElementById("printIframe").src="jreport/showReport1.mvc?loginname="+loginname;
        }
    </script>
</head>
<body>

<div style="text-align:center" class="printStatementDiv">
    loginname : <input id="loginname">
    <input type="button" value="QUERY" onclick="changeSrc()">
    <br/>
    <iframe id="printIframe" frameborder=0 scrolling=yes width="840px" height="1000px"
            src="jreport/showReport1.mvc?loginname=admin123"></iframe>
</div>

<br/>
<br/>
</body>
</html>